{template "mheader.html"}



<div class="portlet light ">
    <div class="portlet-title tabbable-line">
        <ul class="nav nav-tabs" style="float:left;">
            <li class="active">
                <a href="{dr_member_url('xcx/my/index')}"> 我的小程序 </a>
            </li>
            <li class="">
                <a target="_blank" href="{dr_url('cloud/category/index', ['id'=>$catid])}"> 购买小程序 </a>
            </li>
        </ul>
    </div>
    <div class="portlet-body">



    <form class="form-horizontal" role="form" id="myform">
        {dr_form_hidden()}
        <div class="table-scrollable">
            <table class="table table-striped table-bordered   dataTable">
                <thead>
                <tr class="heading">

                    <th style="text-align:center" width="70"></th>
                    <th class="{dr_sorting('name')}" name="name">小程序</th>
                    <th width="120" class="{dr_sorting('price')}" name="price">价格</th>
                    <th width="140" class="{dr_sorting('username')}" name="username">账号</th>
                    <th width="210" class="{dr_sorting('setting')}" name="setting">有效期</th>

                    <th>{dr_lang('操作')}</th>
                </tr>
                </thead>
                <tbody>
                {loop $list $t}
                <tr class="odd gradeX" id="dr_row_{$t.id}">

                    <td style="text-align:center">
                        <a><img class="img-circle" src="{dr_thumb($t.logo)}" style="width:40px;height:40px"></a>
                    </td>

                    <td>{$t['name']}</td>
                    <td>{$t['price']}</td>
                    <td>{Function_list::author($t['username'])}</td>
                    <td>{dr_date($t.inputtime, 'Y-m-d')} ~ {dr_date($t.endtime, 'Y-m-d')}</td>

                    <td>
                        <label><a href="{dr_member_url('cloud/my/show', ['id'=>$t.oid])}" class="btn btn-xs green"> <i class="fa fa-edit"></i> {dr_lang('订单信息')}</a></label>
                        <label><a href="{dr_member_url('xcx/admin/index', ['xid'=>$t.id])}" class="btn btn-xs red" target="_blank"> <i class="fa fa-user"></i> {dr_lang('管理小程序')}</a></label>

                    </td>
                </tr>
                {/loop}
                </tbody>
            </table>
        </div>

        <div class="row fc-list-footer table-checkable ">
            <div class="col-md-12 fc-list-page">
                {$mypages}
            </div>
        </div>
    </form>
    </div>
</div>
</div>


{template "mfooter.html"}